package InterviewTest.q0202_kthToLast;
import CommonClass.Common.ListNode;
public class Solution_1 {
    public int kthToLast(ListNode head, int k) {
        ListNode node = head;
        for (int i = 0; i < k; i++) {
            node = node.next;
        }
        while (node != null) {
            node = node.next;
            head = head.next;
        }
        return head.val;
    }
}
